import { styled } from 'styled-components';

export const DiscoverWrapper = styled.div`
  .dis-header {
    margin: 37.52px 0px;
    font-size: 56px;
    font-weight: 600;
    color: rgb(255, 255, 255);
  }

  .hotcat-list {
    display: flex;
    align-content: center;
    color: #7a7a7b;
    flex-wrap: wrap;

    .hotcat-item {
      font-size: 18px;
      font-weight: 700;
      padding: 8px 18px;
      margin: 0px 10px 14px 10px;
      cursor: pointer;
      border-radius: 8px;
      transition: all 250ms ease 0s;
      background-color: rgba(255, 255, 255, 0.1);

      &:hover {
        color: var(--color-primary);
        background-color: var(--color-primary-bg) !important;
      }
    }

    .active {
      color: var(--color-primary);
      background-color: var(--color-primary-bg) !important;
    }
  }

  .cat-table {
    margin-top: 8px;
    background: var(--color-secondary-bg);
    border-radius: 10px;
    padding: 8px;
    color: var(--color-text);

    .big-cat {
      display: flex;
      margin-bottom: 32px;
      align-items: center;

      .big-name {
        font-size: 24px;
        font-weight: 700;
        margin: 8px 0 0 15px;
        opacity: .68;
        flex-shrink: 0;
      }

      .cat-list {
        display: flex;
        align-items: center;
        margin-left: 24px;
        flex-wrap: wrap;

        .subCat-item {
          cursor: pointer;
          box-sizing: border-box;
          margin-top: 14px;
          user-select: none;
          font-size: 16px;
          transition: .2s;
          min-width: 98px;

          .cat-text {
            height: 26px;
            padding: 4px 12px;
            text-align: center;
            line-height: 24px;
            border-radius: 10px;
            opacity: .88;
            align-items: center;

            &:hover {
              color: var(--color-primary);
              background-color: var(--color-primary-bg);
            }
          }

          .active {
            color: var(--color-primary);
          }
        }
      }
    }
  }
`;
